<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../assets/js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<freddy here="Chain"></freddy>
			<freddy from-here="panda"></freddy>
			<freddy v-bind:meg="message"></freddy>
		</div>
		<script>
			var app = new Vue({
				el:"#app",
				data:{
					message:"hello world!!"
				},
				components:{
					"freddy":{
						template:'<div style="color:lawngreen">我是局部自定义组件{{here}}{{fromHere}}{{meg}}</div>',
						props:["here","fromHere","meg"]
					}
				}
			})
		</script>
	</body>
</html>
